import React, { Component } from 'react'
import {connect} from 'react-redux';
import actions from '../store/actions';
//export  default @connect(state=>state)  
class Counter extends Component {
  render() {
    return (
      <div>
        <p>{this.props.number}</p>
        <button onClick={this.props.increment}>+</button>
        <button onClick={this.props.thunkIncrement}>thunk+</button>
        <button onClick={this.props.sagaIncrement}>saga+</button>
      </div>
    )
  }
}

export default connect(state=>state,actions)(Counter);